-- GENERATED SPELL FOR [Mummified Headhunter] --


function spell0_16342(pUnit, Event) --@Cloud of Disease,Self--
pUnit:FullCastSpellOnTarget(29047,pUnit)
pUnit:RegisterEvent('Sorts_16342', 8000, 1)
end

function Sorts_16342(pUnit, Event)
local choix_sorts_16342 = math.random(0, 0)
if choix_sorts_16342 == 0 then
pUnit:RegisterEvent('spell0_16342', 1, 1)
end
end

function mob16342_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16342', math.random(1500, 3000), 1)
end

function mob16342_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16342_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16342_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16342, 1, 'mob16342_Action')
RegisterUnitEvent(16342, 2, 'mob16342_Leave')
RegisterUnitEvent(16342, 3, 'mob16342_Kill')
RegisterUnitEvent(16342, 4, 'mob16342_Die')
